package gooj.client.services;

import java.util.List;

import gooj.client.services.data.User;

import com.google.gwt.user.client.rpc.AsyncCallback;

public interface UsersServiceAsync {
	void Login(String login, String password, 
			AsyncCallback<User> callback);

	void GetUsers(String session, int d, int count, 
			AsyncCallback<List<User>> callback);
	
	void CreateUser(String session, String eMail, String login, Boolean isOwner, 
			AsyncCallback<User> callback);

	void UpdateUser(String session, User user, String newEMail, String newlogin, Boolean newIsOwner, 
			AsyncCallback<User> callback);

	void RemoveUser(String session, User user, 
			AsyncCallback<Void> callback);

	void SetPassword(String session, User user, String password,
			AsyncCallback<Void> callback);
}
